package com.tsingtree.modular.model.result;

import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 精美礼物-字段配置表
 * </p>
 *
 * @author jagger
 * @since 2025-10-24
 */
@Data
public class NanGiftFieldConfigResult implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer activityId;

    private String fieldName;

    private String fieldLabel;

    private String fieldType;

    private String fieldOptions;

    private Integer isRequired;

    private Integer sort;

    private String placeholder;

    private String defaultValue;

    private Boolean isDel;

    private Date createTime;

    private Date updateTime;

    private Integer version;

    // 是否必填字符串
    private String isRequiredStr;

    public String getIsRequiredStr() {
        if (isRequired == null) {
            return "";
        }
        return isRequired == 1 ? "是" : "否";
    }

}

